<form id="frm_add" method="post" accept-charset="utf-8" action="<?php print $active; ?>">
<div>
    <table style="margin: auto;">
        <tbody>
            <tr>
                <td><label for="name"><?php print lang('vt_constructionname'); ?></label></td>
                <td><input type="text" name="name" value="<?php print ( isset($construction) )? $construction->name : ''; ?>" class="itext ivalidate ui-widget-content ui-corner-all" /></td>
            </tr>
            <tr>
                <td colspan="2"><div id="error_name" class="error"></div></td>
            </tr>
        </tbody>
    </table>
    <?php if( isset($construction) ): ?>
    <input type="hidden" name="id" value="<?php print $construction->id; ?>">
    <?php endif; ?>
</div>
</form>